package com.lecture.springlecture.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;

import javax.servlet.http.HttpServletResponse;

/**
 * @author luyn
 * @version 1.0
 * @description
 * @date 2022/3/28 10:34
 */
@Getter
@AllArgsConstructor
public enum  ResultCode {

    SUCCESS(HttpServletResponse.SC_OK,"操作成功"),

    FAILURE(HttpServletResponse.SC_BAD_REQUEST,"业务异常"),

    INTERNAL_SERVER_ERROR(HttpServletResponse.SC_INTERNAL_SERVER_ERROR,"服务器异常");

    /*code编码*/
    final int code;

    /*中文信息描述*/
    final String message;

}
